﻿using UnityEngine;
using System.Collections;

public class MoveArrowLabyrinthScript : MonoBehaviour {

	// Use this for initialization
	void Start () {
	
	}
	
	// Update is called once per frame
	void Update () {

		int speed = 50;

		if (Input.GetKey ("up"))
			transform.Rotate(Vector3.back * Time.deltaTime * speed);

		if (Input.GetKey ("down"))
			transform.Rotate(Vector3.forward * Time.deltaTime * speed);

		if (Input.GetKey ("left"))
			transform.Rotate(Vector3.right * Time.deltaTime * speed);

		if (Input.GetKey ("right"))
			transform.Rotate(Vector3.left * Time.deltaTime * speed);

	}

	void OnTriggerEnter (Collider other) {
		Debug.Log("Perdu");
	}
}
